@tab-padding: 1px;

.edc-excel-menus {
    position: absolute;
    background-color: #fff;
    border: 1px solid #eaeaea;
    -webkit-box-shadow: 0 0 5px #ddd;
    box-shadow: 0 0 5px #ddd;
    min-width: 120px;
    z-index: 99999;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;

    &-back {
        width: 36px;
        height: 100%;
        background-color: #f2f5f7;
        border: 1px solid #eaeaea;
        border-right: 0;
        position: absolute;
        top: -1px;
        left: -1px;
        z-index: 0;
        -webkit-box-sizing: content-box;
        box-sizing: content-box;
    }

    

    &>ul {
        outline: none;
        margin-bottom: 0;
        padding-left: 0;
        list-style: none;
        z-index: 1080;
        color: #333;
        background: #fff;
        line-height: 46px;
        margin: 10px 0;
        border: 0;
        text-align: left;

        &>li {
            margin-left: -1px;
            left: 1px;
            position: relative;
            z-index: 1;
            height: 30px;
            line-height: 30px;
            padding: 0 8px 0 0;
            cursor: pointer;

            span {
                line-height: 30px;
            }

            .icon {
                display: inline-block;
                width: 36px;
                margin-right: 6px;
                text-align: center;
                font-size: 16px;
                vertical-align: -1px;
            }

            .number {
                position: absolute;
                right: 6px;
                top: 4px;
                width: 50px;
                height: 22px;

                .ant-input-number {
                    position: absolute;
                    top: 0px;
                    width: 50px;
                }
            }
            .edc-excel-submenu {
                &>.submenu {
                    display: none;
                    position: absolute;
                    left: 192px;
                    width: 200px;
                    top: 0px;
                    background-color: #fff;
                    border: 1px solid #eaeaea;
                    -webkit-box-shadow: 0 0 5px #ddd;
                    box-shadow: 0 0 5px #ddd;
                    min-width: 120px;
                    z-index: 99999;
                    user-select: none;
                    -webkit-user-select: none;
                    -moz-user-select: none;
                    -ms-user-select: none;
                    &>li {
                        margin-left: -1px;
                        left: 1px;
                        position: relative;
                        z-index: 1;
                        height: 30px;
                        line-height: 30px;
                        padding: 0 8px 0 0;
                        cursor: pointer;
                        color: #333;
                        &:hover {
                            background-color: #57c5f7;
                            color: #fff;
                        }
                    }
                }
            }
            &:hover {
                background-color: #57c5f7;
                color: #fff;
                .edc-excel-submenu {
                    &>.submenu {
                        display: inline;
                    }
                }
            }


        }
        
    }
}

.wea-edc-excel-spin {
    height: 100%;
    width: 100%;

    .ant-spin-container {
        height: 100%;
    }

    .wea-edc-excel-wrapper {
        height: 100%;
        position: relative;

        .edc-excel-code-editor {
            position: absolute;
            top: 0px;
            left: 0px;
            width: 100%;
            height: 100%;
            z-index: 1000;
            background: #fff;
            display: none;
        }

        .edc-excel-code-qs {
            position: relative;
            height: auto;
            transition: height 0.3s;
            padding: 10px;
            color: #666;
            border-bottom: 1px solid #ddd;
            padding-bottom: 0px;

            &>div {
                height: auto;
                width: 50%;
                display: inline-block;
                vertical-align: top;
            }

            .title {
                padding: 6px 0px;
                margin-bottom: 10px;
                font-size: 14px;
                color: #333;
                font-weight: 500;
                border-bottom: 1px solid #ddd;
            }

            .edc-excel-code-quick {
                margin-bottom: 8px;
            }

            .edc-excel-code-template {
                .sample {
                    margin: 8px;
                    border-left: 1px dashed #ccc;
                    padding-left: 16px;

                    &>div {
                        padding: 8px;
                        width: 100%;
                        background-color: #f7f7f7;

                    }
                }

                .title {
                    padding-left: 8px;
                    margin-bottom: 0px;
                }

            }

            .ant-btn {
                margin-top: 10px;
            }
        }

        .edc-excel-code-functions {
            position: relative;
            height: 97.8%;

            .search {
                width: 100%;
                padding: 0px 16px 16px 16px;

                .wea-input-focus {
                    width: 100%;
                }
            }

            .functions {
                position: absolute;
                top: 90px;
                left: 0px;
                width: 100%;
                bottom: 0px;
                overflow-y: auto;

                &>p {
                    line-height: 24px;
                    cursor: pointer;
                    padding: 0px 16px;

                    &>i {
                        font-size: 16px;
                        margin-right: 8px;
                    }
                }

                &>ul {
                    height: 0px;
                    opacity: 0;
                    visibility: hidden;
                    transition: all 0.3s;

                    &.open {
                        height: auto;
                        opacity: 1;
                        visibility: visible;
                    }

                    &>li {
                        cursor: pointer;
                        padding: 4px 16px 8px 24px;

                        &.active,
                        &:hover {
                            cursor: pointer;
                            background: #d0dfed;
                            color: #108ee9;
                        }

                        &>div {
                            font-size: 13px;
                            padding: 0 0 5px 0;
                        }

                        &>p {
                            opacity: .6;
                            padding: 0;
                            font-size: 11px;
                            line-height: 16px
                        }
                    }
                }
            }
        }
    }

    .edc-workbook {
        height: 100%;
        background: #fff;

        .edc-workbook-head {
            height: 34px;
            line-height: 34px;
            border-top: 1px solid #eaeaea;
        }

        .cell-name {
            width: 100px;
            float: left;
            text-align: center;
            background: #fff;
            min-height: 1px;
            height: 32px;

        }

        .cell-undo-redo {
            float: left;
            width: 66px;

            button {
                padding: 5px 8px;
                border: 0px;

                &.ant-btn[disabled],
                &.ant-btn[disabled]:hover {
                    background: transparent;
                    color: #c9c9c9;
                }
            }
        }

        .cell-opt {
            color: #57c5f7;
            font-size: 16px;
            float: left;
            width: 40px;
            font-weight: 500;
        }

        .formula-text-box {
            width: e("calc(100% - 206px)");
        }
    }

    .workbook-container {
        height: 100%;
        border-top: 1px solid #eaeaea;
        position: relative;

        .gc-ui-contextmenu-container {
            min-width: 250px;
        }
    }
}

.edc-workbook-tools {
    padding: 8px;
    height: 100px;

    .ml-1 {
        margin-left: 0.75rem;
    }

    .wea-upload {
        display: inline-block;
        padding: 5px;
        vertical-align: middle;

        .wea-upload-container {
            height: auto;
            line-height: normal;

            &>span {
                vertical-align: middle;
            }
        }
    }

    .tool-btn {
        border: 0px;
        vertical-align: middle;
        padding: 5px;
        border-radius: 0px;

        .wea-browser {
            .wea-associative-search {
                display: none;
            }

            .wea-type-list-panel {
                margin-top: -20px;
            }
        }

        &-active {
            background: #2db7f5;
            color: #fff;
        }

        &.tool-btn-large {
            padding: 5px;
            margin-right: 5px;

            &>i,
            &.tool-btn-large>.ant-badge>i {
                font-size: 30px;
                display: block;
                padding-bottom: 10px;
            }

            .ant-badge-count {
                right: -20px;
            }
        }
    }

    .edc-divider {
        vertical-align: middle;
        height: 90px;
    }

    .tool-area {
        vertical-align: middle;
        display: inline-block;

        .tool-area-row {
            padding: 2px;
            height: 32px;

            &>.tool-btn {
                margin-right: 5px;
            }
        }
    }

    .tool-item {
        position: relative;
    }

    .edc-drop-select {
        font-size: 10px;

        &:hover {
            z-index: 2;
        }

        .wea-input-normal .ant-input {
            min-height: 24px;
        }

        .wea-color-picker {
            height: 100%;
            vertical-align: middle;
            width: auto;
        }
    }
}

.cueb-quick-table-drawer {
    overflow: hidden;

    .edc-drawer-title {
        background: #335285;
        color: #fff;
    }

    .edc-drawer-close {
        color: #fff;
    }

    .edc-drawer-body {
        padding: 0px;
        height: e("calc(100% - 47px)");

        .ant-spin-nested-loading,
        .ant-spin-container {
            height: 100%;
        }
    }
}

.edc-drawer-wrapper-body {
    overflow: hidden !important;
}

.edc-quick-table {
    height: 100%;

    .edc-quick-table-content {
        height: e("calc(100% - 96px)");
        border-top: 1px solid #eaeaea;
    }
}

.mr-5 {
    margin-right: 1rem;
}

.edc-ds-list-popover {
    .ant-popover-inner-content {
        padding: 8px 0px;
    }

    .edc-ds-list {
        max-height: 250px;
        overflow: auto;

        &>li {
            padding: 8px 16px;
            cursor: pointer;

            &:hover {
                color: #2db7f5;
                background: #eaf8fe;
            }
        }
    }
}

.edc-field-props {
    overflow-y: auto;
    position: absolute;
    right: 0px;
    top: 1px;
    bottom: 0px;
    background: #fff;
    width: 320px;
    -webkit-box-shadow: 0 9px 12px -2px rgba(39, 54, 78, .11);
    box-shadow: 0 9px 12px -2px rgba(39, 54, 78, .11);
    z-index: 100;

    .toggle {
        width: 18px;
        height: 60px;
        position: absolute;
        top: 50%;
        left: 0px;
        margin-top: -80px;
        z-index: 11;
        cursor: pointer;
        background-size: 100% 100%;
        background: url(/edc/imgs/leftTree-hide.png) no-repeat -2px 0;
    }

    .toggle-hidden {
        width: 18px;
        height: 60px;
        position: absolute;
        top: 50%;
        left: -18px;
        margin-top: -80px;
        z-index: 11;
        cursor: pointer;
        background-size: 100% 100%;
        background: url(/edc/imgs/leftTree-open.png) no-repeat -2px 0;
    }
}

.edc-tab-content {
    .ant-row {
        position: relative;
        padding: 10px;
        padding-bottom: 0;

        &>label {
            font-size: 14px;
            color: #848484;
            display: block;
            padding: 0 10px 5px 1px;
        }

        .edc-select-options {
            &>li {
                position: relative;
                padding: 8px 0px;
                display: table;
                width: 100%;

                &:before {
                    content: "\E650";
                    display: table-cell;
                    width: 24px;
                    font-family: anticon !important;
                }

                &>div {
                    display: table-cell;
                    border-bottom: 1px solid #eaeaea;
                }

                &:hover {
                    background: #e9f7ff;

                    &>div {
                        border-color: #2db7f5;
                    }
                }
            }
        }

        .wea-field-readonly {
            display: block;

            a {
                cursor: not-allowed;
                color: #000;
            }
        }
    }
}

.edc-tab-nav {
    display: table;
    width: 100%;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    background: #f2f2f3;
    text-align: center;
    overflow: hidden;
    cursor: pointer;

    &>li {
        position: relative;
        display: table-cell;
        color: #8d9ea7;

        &.selected {
            color: #2db7f5;
        }

        &.disabled {
            color: transparent;
        }
    }

    &-bg {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: calc(100% + 1px);
        background: #fff;
        -webkit-transition: all .4s ease-in-out;
        -o-transition: all .4s ease-in-out;
        transition: all .4s ease-in-out;
    }

    &-icon {
        position: relative;
    }
}



.menu {
    // -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    // box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    //min-width: 240px;
    background: #fff;

    .menu-item {
        position: relative;
        line-height: 32px;
        height: 32px;
        padding: 0px @tab-padding;
        cursor: pointer;

        &:hover,
        &.active {
            color: #2db7f5;
        }

        .menu-item-opts {
            display: none;
            right: @tab-padding;
            position: absolute;
            top: 0px;

            i {
                margin-left: 10px;
            }
        }

        &:hover {
            .menu-item-opts {
                display: block;
            }
        }
    }
}

.wev-edc-tree-top-warp {
    background-color: #f9f9f9;
    padding-left: 20px;
    padding-right: 20px;

    .wev-edc-tree-top {
        line-height: 52px;
        width: 210px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.wev-edc-condition-warp {
    width: 98%;
    padding: 0px 0px 0px 15px;
    overflow: hidden;

    .wev-edc-condition-top {
        padding: 10px 10px;
        border-bottom: 1px solid #e9e9e9;

        .wev-edc-field-label {
            cursor:pointer;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            width: 58px;
            float: left;
            line-height: 30px;
            padding-right: 10px;
        }

        .wev-edc-field {
            float: left;
        }
    }

    .wev-edc-condition-button {
        height: 50px;
        padding: 10px 20px;
        border-bottom: 1px solid #e9e9e9;

        .btns {
            float: right;
        }

        .btn-icon {
            display: inline-block;
            height: 29px;
            width: 29px;
            margin-right: 15px;
            cursor: pointer;
        }

        .add {
            background: url("/formmode/js/ruleDesign/images/add_wev8.png");
        }

        .add:hover {
            background: url("/formmode/js/ruleDesign/images/add_hover_wev8.png");
        }

        .del {
            background: url("/formmode/js/ruleDesign/images/delete_wev8.png");
        }

        .del:hover {
            background: url("/formmode/js/ruleDesign/images/delete_hover_wev8.png");
        }

        .joinor {
            background: url("/formmode/js/ruleDesign/images/joinor_wev8.png");
        }

        .joinor:hover {
            background: url("/formmode/js/ruleDesign/images/joinor_hover_wev8.png");
        }

        .joinand {
            background: url("/formmode/js/ruleDesign/images/joinand_wev8.png");
        }

        .joinand:hover {
            background: url("/formmode/js/ruleDesign/images/joinand_hover_wev8.png");
        }

        .spit {
            background: url("/formmode/js/ruleDesign/images/split_wev8.png");
        }

        .spit:hover {
            background: url("/formmode/js/ruleDesign/images/split_hover_wev8.png");
        }
    }

    .wev-edc-condition-content {
        padding: 15px 25px;

        #expressionBlock {
            margin-top: 15px;
        }

        /* 主内容区域 */

        .content {
            margin: 0px;
            padding: 0px;
            width: 100%;
            height: 100%;
        }

        .clickedColor {
            background-color: #c8e0fd;
        }

        .unclickedColor {
            background-color: #ffffff;
        }

        .editBlockClass {
            display: inline-block !important;
            max-height: 78px;
            min-height: 30px;
            border: 1px solid #c6c6c6;
        }

        .displayspan {
            border: 2px solid #fff;
            cursor: pointer;
            padding: 1px 8px;
        }

        .relationblock {
            user-select: none;
            padding-left: 45px;
            position: relative;
            border: 2px dashed #fff;
        }

        .relationblock {
            cursor: pointer;
        }

        .spanselected {
            border: 2px dashed #17d68c;
        }

        .relationStyle {
            position: absolute;
            left: 35px;
            top: 2px;
            bottom: 2px;
        }

        .relationStyleTop {
            /*height:6px;*/
            height: 10px;
            width: 10px;
            border-bottom: 2px solid #7E7E7E;
        }

        .relationStyleBottom {
            position: absolute;
            bottom: 0px;
            height: 10px;
            /*height:6px;*/
            width: 10px;
            border-top: 2px solid #7E7E7E;
        }

        .relationStyleCenter {
            position: absolute;
            /*
            top:6px;
            bottom:6px;
            */
            top: 10px;
            bottom: 10px;
            border-left: 2px solid #7E7E7E;
        }

        .relationItem {
            padding-left: 10px;
            margin-top: 3px;
            margin-bottom: 7px;
        }

        span.relationItem {
            display: flex;
        }

        div.relationItem {
            display: block;
        }

        .relationItem:last-child {
            margin-bottom: 5px;
        }

        .outermoststyle .relationStyleTop {
            border-top: 2px solid #7E7E7E;
            border-bottom: 0px solid #7E7E7E;
        }

        .outermoststyle .relationStyleBottom {
            border-top: 0px solid #7E7E7E;
            border-bottom: 2px solid #7E7E7E;
        }

        .outermoststyle .relationStyleCenter {
            top: 0px;
            bottom: 0px;
        }

        .verticalblock {
            position: absolute;
            top: 45%;
            margin-top: -7px;
            height: 20px;
            left: 0px;
            padding: 0 3px;
            line-height: 20px;
        }

        .relationblock:not(.isroot) .verticalblock {
            cursor: pointer;
        }

        .varticalblockborder {
            border: #a0a0a0 1px solid;
        }

        .operbtn {
            width: 29px;
            height: 29px;
            border: none;
            cursor: pointer;
        }

        .operbtn_ok {
            background: url('/formmode/js/ruleDesign/images/ok_wev8.png') center center no-repeat;
        }

        .operbtn_ok:hover {
            background: url('/formmode/js/ruleDesign/images/ok_hover_wev8.png') center center no-repeat;
        }

        .operbtn_cancel {
            background: url('/formmode/js/ruleDesign/images/cancel_wev8.png') center center no-repeat;
        }

        .operbtn_cancel:hover {
            background: url('/formmode/js/ruleDesign/images/cancel_hover_wev8.png') center center no-repeat;
        }
    }

    #ruleSQL {
        padding: 5px 15px;
        border-top: 1px solid #e9e9e9;
        height: 60px;
    }

    #ruledescBtn {
        width: 29px;
        height: 29px;
        border: none;
        cursor: pointer;
        position: absolute;
        bottom: 30px;
        left: 10px;
    }

    #ruledescBtn.operbtn_up {
        background: url('/formmode/js/ruleDesign/images/up_wev8.png') 0 0 no-repeat;
    }

    #ruledescBtn.operbtn_down {
        background: url('/formmode/js/ruleDesign/images/down_wev8.png') 0 0 no-repeat;
        bottom: 70px;
    }

    .wev-edc-condition-sql {
        padding: 10px 20px;
        position: relative;

        .sqlLabel {
            position: relative;
            top: 48%;
            left: 20px;
        }
    }

    .sqlDesc {
        padding-top: 5px;
        line-height: 20px;
    }

    .wev-edc-condition-editdiv {
        min-height: 40px;
        padding: 5px 0px 5px 15px;

        .wev-edc-field {
            float: left;
        }
    }
}

.wev-edc-table-inner-warp {
    .ant-table-header {
        background-color: #f7fbfe;
        margin-bottom: 0px !important;

    }

    .ant-table-fixed-header .ant-table-scroll .ant-table-header {
        overflow: hidden;
    }

    .ant-table-tbody>tr>td {
        word-break: break-all;
    }

    .ant-table-thead>tr>th {
        background-color: #f7fbfe;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .ant-table-thead th {
        border-bottom: 1px solid #eaeaea;
        font-weight: 400;
    }

    .ant-table,
    .ant-table table {
        border-radius: 0;
    }
}

.wea-edc-top-btn-tab {
    .ant-tabs-nav {
        margin-left: -19px;
    }

    .ant-tabs-nav .ant-tabs-tab-inner {
        cursor: unset;
    }

    .ant-tabs-nav .ant-tabs-tab-inner:hover {
        color: #333;
    }

    .wea-search-tab {
        padding-right: 15px;
    }
}

.wea-edc-form-title {
    display: block;
    width: 10%;
    height: 30px;
    border: 0px solid #CCCCCC;
    position: relative;
    top: -10px;
    margin-left: 25px;
    text-align: center;
    background: white;
}

.edc-report-excel-cell-select {
    width: 93%;
    position: relative;

    &>div>button {
        border: 0px;
        background: transparent;
        position: absolute;
        left: 361px;
        top: 0px;
        padding: 5px 8px;

        &:hover {
            background: transparent;
        }
    }
}

.edc-excel-cell-select-dialog {
    .wea-dialog-body {
        overflow-y: auto;
    }

    .showstyle {
        padding: 30px 45px;
    }

    .ant-modal {
        overflow: hidden;
    }

    &.small {
        .showstyle {
            padding: 0px 0px;
        }

        .ant-modal-footer {
            display: none;
        }

        .ant-modal-wrap {
            height: 0px;
        }

        .ant-modal {
            position: fixed;
            z-index: 1050;
            box-shadow: 0 0 12px #333;
            transition: width 0.3s;
            transition: opacity 0.3s;
            border-radius: 6px;
        }

        .wea-dialog-body {
            height: 41px !important;
            overflow: hidden;
        }

        .edc-report-excel-cell-select.changing {}

        .ant-table-thead,
        .wea-table-editable-title,
        .ant-modal-mask,
        .ant-table-tbody>tr>td:not(.show-td),
        .ant-modal-close,
        .wea-form-item:not(.show-editable) {
            display: none !important;
        }

        .ant-table-tbody>tr>td {
            border-radius: 6px;
        }
    }
}


.edc-app-excel-header{
    &-dropmenu{
        width: 80px;
    }
    &-upload{
        display: inline-block;
        padding: 0px !important;
    }
    &-btn {
        text-align: center;
        padding: 0px;
        margin: 0px 0px 0px 5px;
        border: none;
        border-radius: 0px;

        &>i {
            font-size: 20px;
            vertical-align: middle;
        }
        &>span{
            vertical-align: middle;
        }

        &>button {
            text-align: center;
            padding: 5px !important;
            border: none;

            &>i {
                font-size: 20px;
            }
        }

        &.large {
            margin-top: 5px;
            &>i {
                font-size: 20px;
            }
        }

        &.active {
            background: #0270c1;
            color: #fff;
        }
    }
    &-dropformattermenu {
        .ant-dropdown-menu-item {
    
            &>i,
            &>span {
                vertical-align: middle;
            }
    
            &>i {
                font-size: 20px;
                margin-right: 5px;
            }
        }
        .ant-dropdown-menu-submenu-vertical .ant-dropdown-menu-submenu {
            &>i,
            &>span {
                vertical-align: top;
            }
    
            &>i {
                font-size: 20px;
                margin-right: 5px;
            }
        };
        .ant-dropdown-menu-submenu-title {
            width: 110px;
        }
    }
}
